package com.groupseven.happycampus.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ErrandOrder {
    private Integer id;
    private String type;
    private String details;
    private String userName;
    private String pic;
    private String telephone;
    private String origin;
    private String destination;
    @DateTimeFormat(pattern = "yyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd ")
    private Date beginTime;
    private String name;
    private String phone;
}
